package com.game;


import android.app.Activity;

import android.view.View.OnClickListener;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.content.Intent;




public class Gaisma extends Activity {
	private static final String MYTAG = "GAISMA";
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        initializeButtons();
       
     
    }
    
    private void initializeButtons()
    {
    	// New Game button
    	Button newGameButton = (Button) findViewById(R.id.newGameButton);
        
    	newGameButton.setOnClickListener(new OnClickListener() 
        {
            public void onClick(View v) 
            {
            	Log.i(MYTAG, "New Game pressed");
            	Intent i = new Intent(Gaisma.this, PlayScene.class);
                startActivity(i);
            }
        });
    	
    	// Resume Game button
    	Button resumeGameButton = (Button) findViewById(R.id.resumeGameButton);
        
    	resumeGameButton.setOnClickListener(new OnClickListener() 
        {
            public void onClick(View v) 
            {
            	Log.i(MYTAG, "Resume Game pressed");
            }
        });
    	
    	// Options button
    	Button optionsGameButton = (Button) findViewById(R.id.optionsButton);
        
    	optionsGameButton.setOnClickListener(new OnClickListener() 
        {
            public void onClick(View v) 
            {
            	Log.i(MYTAG, "Options pressed");
            	Intent i = new Intent(Gaisma.this, OptionsScene.class);
                startActivity(i);
            }
        });
    	
    	// Exit button
    	 Button exitButton = (Button) findViewById(R.id.exitButton);
         
    	 exitButton.setOnClickListener(new OnClickListener() 
         {
             public void onClick(View v) 
             {
             	Log.i(MYTAG, "Exit pressed");
             	setResult(RESULT_OK);
                finish();
             }
         });
    	
    }
  
    
   
}

/*
 *  public boolean onCreateOptionsMenu(Menu menu) {
        MenuInflater inflater = getMenuInflater();
        inflater.inflate(R.menu.principal_menu, menu);
        return true;
    }
 * 
 * Log.i("MyActivity", "Testing the stupid log");
 * adb logcat
 */